package com.helsinki.mapper;

import com.helsinki.pojo.Product;
import com.helsinki.pojo.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SysLogMapper {

    //添加日志
    @Insert("insert into SysLog " +
            "(id,visitTime, username, ip, url,executionTime,method) " +
            "values(#{id},#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void addLog(SysLog sysLog);


    //查询所有
    @Select("select * from syslog")
    List<SysLog> findAll();
}
